package com.amarin.action;

import java.util.HashMap;
import java.util.Map;

import com.amarin.configs.load.BBDDConfigValues;
import com.amarin.sql.view.View_Configuration_Values;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class MainAction extends ActionSupport {

	private static final long serialVersionUID = -2613425890762568273L;

	public String welcome()
	{
		HashMap <String, String> configuracion = View_Configuration_Values.launchConfigQuery();
		String css = BBDDConfigValues.createStyles(configuracion);
		Map <String, Object> session = ActionContext.getContext().getSession();
		session.put("DINAMIC_CSS", css);
		return "welcome";		
	}
	
	public String friends()
	{
		return "friends";		
	}
	
	public String office()
	{
		return "office";		
	}
}
